home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / net3d-0.08 / Imakefile < prev    next >
Makefile  |  1995-07-13  |  3KB  |  114 lines

  1. /****************************************************************************
  2.  * Imakefile
  3.  *
  4.  * Make any compiler command line changes in this file
  5.  ****************************************************************************/
  6.  
  7. /* If you're using Solaris, you may have to uncomment the line below */
  8. /*
  9. #undef ExtraLibraries
  10. #define ExtraLibraries -lsocket -lnsl
  11. */
  12.  
  13. /* add any debugging options here.
  14.  */
  15. DEBUGOPTS =
  16.  
  17. /* Default options, for architectures that don't define an Architecture,
  18.  * (for example the Alphas here at monash)
  19.  */
  20. CC = gcc
  21.  
  22. #if defined(SCOArchitecture)
  23. /* Options for SCO */
  24. CC = cc
  25. CDEBUGFLAGS = -O
  26. ARCHDEFINES = -DSCO
  27. GLIBDIR=/usr/skunk/games/lib
  28. BINDIR=/usr/skunk/bin/X11
  29. MANDIR = /usr/skunk/man/man.1
  30. MANSUFFIX = 1
  31. XAPPLOADDIR = /usr/skunk/lib/X11/app-defaults
  32. MKDIRHIER = /usr/bin/X11/mkdirhier
  33. #endif
  34.  
  35. #if defined(AlphaArchitecture)    /* what is the correct definition? */
  36. /* Alpha OSF/1
  37.  */
  38. CC = gcc
  39. #endif
  40.  
  41. #if defined(SGIArchitecture)
  42. CC = cc
  43. #endif
  44.  
  45. #if defined(HPArchitecture)
  46. /* Options for HP-UX
  47.  */
  48. CCOPTIONS = -Ae 
  49. CC = cc
  50. ARCHDEFINES = -DNO_SELECT_H
  51. /* If you're daring and "what /bin/cc" >= A.09.61, then uncomment line below.
  52.    Be warned that you may hit optimiser bugs though, depending on your compiler
  53.    release. +O4 +Oall currently *does not* compile the code correctly */
  54. /* CDEBUGFLAGS = +O4 +Onolimit +Oentrysched +Olibcalls +Onoinitcheck +Onoparmsoverlap */
  55. #endif
  56.  
  57. #if defined(SunArchitecture)
  58. /* Options for SunOS
  59.  */
  60. CC = gcc
  61. CCOPTIONS = -I/usr/include/X11R5
  62. ARCHDEFINES = -DNO_STRERROR -DNO_SELECT_H
  63. /* Note for sun users - you may have to change CCOPTIONS to look in the
  64.  * right directory for your site.
  65.  * Also, you may have to change CPPPATH in config.h to point to the gnu
  66.  * c pre-processor, as the default cpp seems to have trouble with the
  67.  * vehicle files.
  68.  */
  69. #endif
  70.  
  71. #if defined(UltrixArchitecture)
  72. /* Options for Ultrix
  73.  */
  74. CC = cc
  75. CDEBUGFLAGS = -g
  76. ARCHDEFINES = -DNO_SELECT_H
  77. #endif
  78.  
  79. #Imake knows about cpp for this system
  80. IMAKECPP  = CppCmd
  81.  
  82. NET3D_DIR = $(GLIBDIR)/net3d
  83. DEFINES = -DNET3D_DIR=\"$(NET3D_DIR)\" $(ARCHDEFINES) -DCPPCOMMAND=\"$(IMAKECPP)\" $(DEBUGOPTS)
  84.  
  85. SERVER_OBJS  = server.o command.o
  86. CLIENT_OBJS  = client.o view.o game.o
  87. NET_OBJS     = net.o
  88. SHARED_OBJS  = file.o object.o matrix.o util.o brain.o
  89. VEHICLE_OBJS = extras.o
  90.  
  91. COMMON_OBJS  = $(NET_OBJS) $(SHARED_OBJS) $(VEHICLE_OBJS)
  92. OBJS         = $(CLIENT_OBJS) $(COMMON_OBJS)
  93. DEPINCS         = 3d.h net.h netprotos.h config.h icons.h net3d.h protos.h view_icon.h
  94.  
  95. LOCAL_LIBRARIES = -lX11 -lm ExtraLibraries
  96.  
  97. PROGRAMS = net3d net3dserv vtoc
  98.  
  99. AllTarget($(PROGRAMS))
  100. ComplexProgramTarget(net3d)
  101. SingleProgramTarget(net3dserv,$(SERVER_OBJS) $(COMMON_OBJS),$(LOCAL_LIBRARIES),$(HP_NULL_STR))
  102. InstallProgram(net3dserv,$(BINDIR))
  103. SingleProgramTarget(vtoc,vtoc.o,$(HP_NULL_STR),$(HP_NULL_STR))
  104. MakeDirectories(install,$(NET3D_DIR))
  105.     -cp *.v $(NET3D_DIR)
  106.     -cd $(NET3D_DIR); chmod a+r *.v
  107.  
  108. extras.c: vtoc extras.v
  109.     ./vtoc extras.v >extras.c
  110.  
  111. clean::
  112.     /bin/rm -f extras.c
  113.  
  114.